﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mighty.Lib.SensedTypes
{
    public class Namespace : INamespace
    {

        public Namespace(string typeName)
        {

            _typeName = typeName;
            _senseType = SenseTypes.Namespace;
            _children = new List<ISensedType>();

        }

        #region ISensedType Members
        private string _typeName = "";
        public string Name
        {
            get
            {
                return _typeName;
            }
            set
            {
                _typeName = value;
            }
        }

        private SenseTypes _senseType;
        public SenseTypes SenseType
        {
            get
            {
                return _senseType;
            }
            set
            {
                _senseType = value;
            }
        }



        private ISensedType _parent = null;
        public ISensedType Parent
        {
            get
            {
                return _parent;
            }
            set
            {
                _parent = value;
            }
        }

        private List<ISensedType> _children = null;
        public List<ISensedType> Children
        {
            get
            {
                return _children;
            }
        }
        #endregion
    }
}
